package com.yuejian_06.yuejian_06.service;

import com.yuejian_06.yuejian_06.bean.SuccessBean;
import com.yuejian_06.yuejian_06.bean.UserInfoBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by __ZL__ on 2017/9/28.
 */

public interface LoginService {

    @GET("login")
    Call<UserInfoBean> login(
            @Query("phonenum") String phonenum,
            @Query("password") String user_pwd
    );
    @GET("reg")
    Call<SuccessBean> reg(
            @Query("user_name") String user_name,
            @Query("user_pwd") String user_pwd,
            @Query("address") String address,
            @Query("phonenum") String phonenum
    );

}
